package my_test;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class learnStream {
    public static void main(String[] args) {

        List <String> strings = Arrays.asList("args","as","ss");
        List <String> filtered = strings.stream().filter(a->a.length()==2).collect(Collectors.toList());
        System.out.println(filtered);



    }
}
